package com.qykj.ddhing.pda.demo.arms.test1;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * author : 0000
 * desc   :
 * time   : 2018/07/19
 * updateTime : 2018/07/19
 */

public interface LoginService {
//    String HEADER_API_VERSION = "Accept: application/vnd.github.v3+json";
//
//    @Headers({HEADER_API_VERSION})
//    @GET("/users")
//    Observable<List<User>> getUsers(@Query("since") int lastIdQueried, @Query("per_page") int perPage);
        @FormUrlEncoded
        @POST("login")
        Observable<User> getUsers(@Field("username") String username, @Field("password") String password);
}
